﻿namespace WCBG.ToolsForUnity.Tools
{
    using System;
    using System.Collections.Generic;

    public class FString
    {
        public static string[] FiltrateFile(string[] files, string filtrateName)
        {
            List<string> list = new List<string>();
            foreach (string str in files)
            {
                if (str.IndexOf(filtrateName) <= 0)
                {
                    list.Add(str);
                }
            }
            return list.ToArray();
        }

        public static string[] FiltrateMetaFile(string[] files) => 
            FiltrateFile(files, ".meta");
    }
}

